<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/swiper-bundle.min.css">
    <script src="../js/swiper-bundle.min.js"></script>
    <script>
        $(function () {
            var mySwiper = new Swiper('.carousel_case', {
                slidesPerView: 1,
                slideClass: 'carousel_case_slide',
            })
            mySwiper.allowTouchMove = false,
                $('.carousel_case_tab li').hover(function () {
                    $('.carousel_case_tab li').removeClass('tab_active')
                    $(this).addClass('tab_active')
                    mySwiper.slideTo($(this).index())
                })
        })
    </script>
    <style>
        .img_collection_quadru_list {
            width: 100%;
            display: flex;
        }

        .img_collection_quadru_list li {
            width: 25%;
            overflow: hidden;
            padding: 0 10px;
            position: relative;
            box-sizing: border-box;
        }

        .img_collection_quadru_list li img {
            width: 100%;
            height: 333px;
            object-fit: cover;
        }

        .img_collection_quadru_list li p {
            position: absolute;
            bottom: 0px;
            font-size: 16px;
            background-color: rgba(0, 0, 0, 0.7);
            text-align: center;
            color: white;
            line-height: 44px;
            padding: 0 10px;
            width: 100%;
            background-clip: content-box;
            box-sizing: border-box;
            left: 0;
        }

        .carousel_case_tab {
            display: flex;
            margin-bottom: 90px;
            justify-content: center;
        }

        .carousel_case_tab li {
            border-radius: 2px;
            padding: 10px 40px;
            cursor: pointer;
            max-width: 144px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            margin: auto 10px;
            transition: color 0.3s, background-color 0.3s;
            color: var(--c_subtitle);
        }

        .carousel_case_tab li.tab_active {
            color: var(--c_b_nav);
            background-color: var(--c_theme);
        }

        @media (max-width:1240px) {
            .img_collection_quadru_list {
                flex-wrap: wrap;
            }

            .img_collection_quadru_list li {
                width: 33.3%;
                padding: 20px 10px;
            }
            .img_collection_quadru_list li img{
                height: 300px;
            }
            .carousel_case_tab {
                margin-bottom: 50px;
            }
            .img_collection_quadru_list li p{
                bottom: 20px;
            }
        }

        @media (max-width:768px) {
            .img_collection_quadru_list li {
                width: 50%;
                padding: 20px 10px;
            }

            .carousel_case_tab li {
                font-size: 14px;
                padding: 10px 30px;
            }
        }

        @media (max-width:500px) {
            .carousel_case_tab {
                margin-bottom: 10px;
            }

            .img_collection_quadru_list li {
                width: 100%;
            }

            .carousel_case_tab li {
                padding: 10px 20px;
                margin: auto 5px;
            }
        }
    </style>
</head>

<body>
    <div class="carousel modular">
        <ul class="carousel_case_tab public_width">
            <li class="tab_active">领域分类</li>
            <li>领域分类</li>
            <li>领域分类</li>
        </ul>
        <div class=" carousel_case swiper-container">
            <ul class="swiper-wrapper">
                <li class="swiper-slide carousel_case_slide">
                    <ul class="img_collection_quadru_list">
                        <li>
                            <a href="">
                                <img src="../images/img_collection_4.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_5.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_6.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_7.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="swiper-slide carousel_case_slide">
                    <ul class="img_collection_quadru_list">
                        <li>
                            <a href="">
                                <img src="../images/img_collection_4.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_5.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_6.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_7.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="swiper-slide carousel_case_slide">
                    <ul class="img_collection_quadru_list">
                        <li>
                            <a href="">
                                <img src="../images/img_collection_4.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_5.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_6.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="../images/img_collection_7.webp" alt="">
                                <p>品牌实力</p>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</body>

</html>